<%@page import="com.framework.entity.Global"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ page import="com.biz.utils.ConfigUtil" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
    String picUrl=ConfigUtil.get("OSSURL");
%>

<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="UTF-8">
<title>活动列表</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<jsp:include page="/jsp/inc.jsp"></jsp:include>
<style>
	.activeorgnazation .orgaspan{
		top: -0.03rem;
		position: relative;
		height: inherit;
		line-height: inherit;
		padding:.01rem .16rem;
	}
</style>

</head>
<body style="padding-bottom: 1.1rem;">
<c:choose>
	<c:when test="${not empty list}">
		<c:forEach items="${list}" var="obj" varStatus="vs">
		<div class="activelist" onclick="toMebDetail('${obj.id}')">
				<div class="activeorgnazation">
					<img src="<%=picUrl%>/${obj.coverId}" alt="" class="orga">
					<div class="nameorga">
						<span class="name">${obj.groupName}</span>
						<span class="orgaspan">组织</span>
					</div>
					<span class="pointnum"><span class="num">${obj.integral}</span>积分</span>
					<br class="clear"/>
				</div>
				<div class="activeimgtitle">
					<img src="<%=picUrl%>/${obj.path}" alt="" class="">
					<div class="title">${obj.subject}</div>
				</div>
				<div class="avtivetimenum">
					<div class="time">时间:${obj.activityTime}</div>
					<div class="num">所需人数：${obj.successCount}/${obj.limitCount}</div>
					<br class="clear"/>
				</div>
		</div>
		</c:forEach>
	</c:when>
	<c:otherwise>
		<div class="notxt">
			<img src="<%=basePath%>resources/image/icon-nullnull.png" alt="" class="notxtImg">
			<div class="nultxttip">暂无活动</div>
		</div>
	</c:otherwise>
</c:choose>
<div class="btmfooter">
	<div class="fl-l foter on" onclick="toMebList()">
		<img src="<%=basePath%>resources/image/icon-active.png" alt="" class="">
		<div class="txt">活动</div>
	</div>
	<div class="fl-r foter" onclick="toMyCenter()">
		<img src="<%=basePath%>resources/image/icon-my.png" alt="" class="">
		<div class="txt">我的</div>
	</div>
	<br class="clear"/>
</div>
<script src="<%=basePath%>resources/js/ydui.js"></script>
<script>
	//跳转个人中心
	function  toMyCenter() {
		window.location.href='${pageContext.request.contextPath}/userCenter/toUserCenter.ac';
    }

    //跳转活动列表
	function toMebList() {
        window.location.href='${pageContext.request.contextPath}/mebactivity/toMebactivityList.ac';
    }
    //跳转活动详情页
	function toMebDetail(id) {
		window.location.href='${pageContext.request.contextPath}/mebactivity/toMebactivityDetail.ac?id='+id;
    }

</script>
</body>
</html>
